let $ = require("./jquery");
let util = {
    request(url,params,type = "GET",success = ()=>{return}){
        let _pre = "../../data/";
        $.ajax({
            url: _pre + url,
            type: type,
            data: params,
            success: function (res) {
                success(res)
            }
        })

    }
};
module.exports = util;